<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Basic DataGrid - jQuery EasyUI Demo</title>
    <link rel="stylesheet" type="text/css" href="../public/jeasyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="../public/jeasyui/themes/icon.css">
    <script type="text/javascript" src="../public/jeasyui/jquery.min.js"></script>
    <script type="text/javascript" src="../public/jeasyui/jquery.easyui.min.js"></script>
</head>

<body>
    <div class="easyui-layout" data-options="fit:true">
        <div data-options="region:'north'">
                <div class="easyui-panel" data-options="fit:true,border:false">
                        <a id="btn-home" href="#" class="easyui-linkbutton" data-options="plain:true">Home</a>
                        <a href="#" class="easyui-menubutton" data-options="menu:'#mm1',iconCls:'icon-edit'">Edit</a>
                        <a href="#" class="easyui-menubutton" data-options="menu:'#mm2',iconCls:'icon-help'">Help</a>
                        <a href="#" class="easyui-menubutton" data-options="menu:'#mm3'">About</a>
                    </div>
                    <div id="mm1" style="width:150px;">
                        <div data-options="iconCls:'icon-undo'">Undo</div>
                        <div data-options="iconCls:'icon-redo'">Redo</div>
                        <div class="menu-sep"></div>
                        <div>Cut</div>
                        <div>Copy</div>
                        <div>Paste</div>
                        <div class="menu-sep"></div>
                        <div>
                            <span>Toolbar</span>
                            <div>
                                <div>Address</div>
                                <div>Link</div>
                                <div>Navigation Toolbar</div>
                                <div>Bookmark Toolbar</div>
                                <div class="menu-sep"></div>
                                <div>New Toolbar...</div>
                            </div>
                        </div>
                        <div data-options="iconCls:'icon-remove'">Delete</div>
                        <div>Select All</div>
                    </div>
                    <div id="mm2" style="width:100px;">
                        <div>Help</div>
                        <div>Update</div>
                        <div>About</div>
                    </div>
                    <div id="mm3" class="menu-content" style="background:#f0f0f0;padding:10px;text-align:left">
                        <img src="http://www.jeasyui.com/images/logo1.png" style="width:150px;height:50px">
                        <p style="font-size:14px;color:#444;">Try jQuery EasyUI to build your modern, interactive, javascript applications.</p>
                    </div>                
        </div>
        <div data-options="region:'west',split:true" title="West" style="width:200px;">
            <div data-options="fit:true" class="easyui-accordion" style="width:500px;height:300px;">
                <div title="About" data-options="iconCls:'icon-ok'" style="overflow:auto;padding:10px;">
                   <ul class="menu">
                       <li><a href="javascript:;" data-url="./user.html">用户管理</a></li>
                       <li><a href="javascript:;" data-url="./news.html">新闻管理</a></li>
                       <li><a href="javascript:;" data-url="./cate.html">分类管理</a></li>
                       <li><a href="javascript:;" data-url="./product.html">产品管理</a></li>
                       <li><a href="javascript:;" data-url="./comment.html">评论管理</a></li>
                   </ul>
                </div>
                <div title="Help" data-options="iconCls:'icon-help'" style="padding:10px;">
                    
                </div>
                <div title="TreeMenu" data-options="iconCls:'icon-search'" style="padding:10px;">

                </div>
            </div>
        </div>
        <div data-options="region:'center',title:'Main Title',iconCls:'icon-ok'">
            <div id="tt" class="easyui-tabs" data-options="fit:true"></div>
            
        </div>
    </div>
    <script>
        $(".menu li a").click(function(){
            var dataUrl=$(this).attr("data-url");
            var dataTitle=$(this).text();
            $("#tt").tabs('add',{
                title:dataTitle,
                content:'<iframe src="'+dataUrl+'" frameborder="0" width="100%" height="100%"></iframe>',
                closable:true
            })
        })
    </script>
</body>
</html>